{set:$goodsObj = search_goods::find(' go.seller_id = '.$seller_id,20);$resultData = $goodsObj->find();}
<div class="bigweb">
<section class="breadcrumb">
	<span>您当前的位置：</span> <a href="{url:}">首页</a> » 商户主页
</section>

<section class="web">
	<section class="main">
		<aside class="condition_filter">
			<!-- 调用筛选 -->
			{include:_goods_list_filter}
			<!-- 调用筛选 -->
		</aside>

		<section class="goods_list">
			{if:$resultData}
			<ul>
				{foreach:items=$resultData}
				<li>
					<a target="_blank" href="{url:/site/products/id/$item[id]}">
						<img alt="{$item['name']}" src="{url:/pic/thumb/img/$item[img]/w/205/h/205}">
						<p class="goods_title"><span>{$item['name']}</span></p>
						<p class="goods_sell_price">￥{$item['sell_price']}</p>
						<p class="goods_market_price">￥{$item['market_price']}</p>
					</a>
				</li>
				{/foreach}
			</ul>
			{$goodsObj->getPageBar()}

			{else:}
			<p class="no_tip">
				对不起，没有找到相关商品
			</p>
			{/if}
		</section>
	</section>
	<aside class="bar">
		<div class="bar_box">
			<h3 class="bar_box_head">商户信息</h3>
			<div class="bar_seller">
				<h1>{$sellerRow['true_name']}</h1>
				<p><img src="{webroot:$sellerRow['logo']}" style="width:100%" onerror="this.src='http://www.aircheng.com/images/public/default_logo.png'" /></p>
				<div class="star_box">
					<strong class="item">评分：</strong>
					<span class="star star_{echo:statistics::gradeSeller($sellerRow['id'])}"></span>
				</div>
				<p>销量：{echo:statistics::sellCountSeller($sellerRow['id'])} 件</p>
				<p>官网：<a href="{$sellerRow['home_url']}" target="_blank">点击进入</a></p>
				<p>联系电话：{$sellerRow['phone']}</p>
				<p>所在地：{echo:join(' ',area::name($sellerRow['province'],$sellerRow['city'],$sellerRow['area']))} {$sellerRow['address']}</p>
				<p><div id="map" style="width: 200px;height: 210px"></div></p>
				
				<p>{set:plugin::trigger("onServiceButton",$sellerRow['id'])}</p>
			</div>
		</div>
		<div class="bar_box">
			<h3 class="bar_box_head">销售排行榜</h3>
			<ul class="bar_goods ranking">
				{foreach:items=Api::run('getGoodsListBySellerid',array('#seller_id#',$seller_id),10)}
				<li>
					<a href="{url:/site/products/id/$item[id]}">
						<img src="{url:/pic/thumb/img/$item[img]/w/60/h/60}" alt="{$item['name']}">
						<strong>{$item['name']}</strong>
						<em>￥{$item['sell_price']}</em>
					</a>
				</li>
				{/foreach}
			</ul>
		</div>

		<div class="bar_box">
			<h3 class="bar_box_head">促销活动</h3>
			<ul class="bar_nav">
				{foreach:items=Api::run('getProrule',$seller_id)}
				<li>{$item['info']}</li>
				{/foreach}
			</ul>
		</div>

		<div class="bar_box">
			<h3 class="bar_box_head">商家推荐</h3>
			<ul class="bar_goods">
				{foreach:items=Api::run('getGoodsListBySelleridList',array('#seller_id#',$seller_id),10)}
				<li>
					<a href="{url:/site/products/id/$item[id]}">
						<img src="{url:/pic/thumb/img/$item[img]/w/60/h/60}" alt="{$item['name']}">
						<strong>{$item['name']}</strong>
						<em>￥{$item['sell_price']}</em>
					</a>
				</li>
				{/foreach}
			</ul>
		</div>
	</aside>
</section>
</div>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=KYwYs1S40IiOXidwZMtTwZHASn4H9UFF"></script>
<script type="text/javascript">
	$(document).ready(function(){
		var address="{$sellerRow['address']}";
		$.ajax({
			url:"{url:/text/jingdu}",
			data:{address:address},
			dataType:"json",
			type:"post",
			success:function(res){
				var lng=res.lng;
				var lat=res.lat;
var map = new BMap.Map("map");    // 创建Map实例
	map.centerAndZoom(new BMap.Point(lng,lat), 15);  // 初始化地图,设置中心点坐标和地图级别
	//添加地图类型控件
	map.addControl(new BMap.MapTypeControl({
		mapTypes:[
            BMAP_NORMAL_MAP,
            BMAP_HYBRID_MAP
        ]}));	  
	map.setCurrentCity("北京");          // 设置地图显示的城市 此项是必须设置的
	map.enableScrollWheelZoom(true);  
			}
		})
	});
</script>